package routes

import (
	controller "doctor_api_backend/controller"

	"github.com/gin-gonic/gin"
)

// 设置入院通知单相关路由,参数是路由组
func SetupAdmissionNoticeRoutes(router *gin.RouterGroup) {
	// 入院通知单路由组
	admissionNoticeRouter := router.Group("/admission_notice")
	{
		// 创建入院通知单
		admissionNoticeRouter.POST("", controller.CreateAdmissionNotice)

		// 获取入院通知单 by 患者ID
		admissionNoticeRouter.GET("/patient/:id", controller.GetAdmissionNoticeByPatientID)

		// 获取入院通知单 by 医生ID
		admissionNoticeRouter.GET("/doctor/:id", controller.GetAdmissionNoticeByDoctorID)

		// 获取入院通知单 by 入院日期
		admissionNoticeRouter.GET("/admission_date/:date", controller.GetAdmissionNoticeByAdmissionDate)

		// 获取入院通知单 by 入院科室
		admissionNoticeRouter.GET("/admission_department/:department", controller.GetAdmissionNoticeByAdmissionDepartment)

		// 获取入院通知单 by 入院诊断
		admissionNoticeRouter.GET("/admission_diagnosis/:diagnosis", controller.GetAdmissionNoticeByAdmissionDiagnosis)

		// 获取入院通知单 by 入院诊断编码
		admissionNoticeRouter.GET("/admission_diagnosis_code/:code", controller.GetAdmissionNoticeByAdmissionDiagnosisCode)

		// 获取入院通知单 by 入院通知书内容
		admissionNoticeRouter.GET("/admission_notice_content/:content", controller.GetAdmissionNoticeByAdmissionNoticeContent)

	}
}
